Optimal. Leaf size=123 \[ \frac{4 (A-B) (a \sin (e+f x)+a)^{m+3}}{a^3 f (m+3)}-\frac{4 (A-2 B) (a \sin (e+f x)+a)^{m+4}}{a^4 f (m+4)}+\frac{(A-5 B) (a \sin (e+f x)+a)^{m+5}}{a^5 f (m+5)}+\frac{B (a \sin (e+f x)+a)^{m+6}}{a^6 f (m+6)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.135305, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.065, Rules used = {2836, 77} \[ \frac{4 (A-B) (a \sin (e+f x)+a)^{m+3}}{a^3 f (m+3)}-\frac{4 (A-2 B) (a \sin (e+f x)+a)^{m+4}}{a^4 f (m+4)}+\frac{(A-5 B) (a \sin (e+f x)+a)^{m+5}}{a^5 f (m+5)}+\frac{B (a \sin (e+f x)+a)^{m+6}}{a^6 f (m+6)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2836
Rule 77
Rubi steps
\begin{align*} \int \cos ^5(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx &=\frac{\operatorname{Subst}\left (\int (a-x)^2 (a+x)^{2+m} \left (A+\frac{B x}{a}\right ) \, dx,x,a \sin (e+f x)\right )}{a^5 f}\\ &=\frac{\operatorname{Subst}\left (\int \left (4 a^2 (A-B) (a+x)^{2+m}-4 a (A-2 B) (a+x)^{3+m}+(A-5 B) (a+x)^{4+m}+\frac{B (a+x)^{5+m}}{a}\right ) \, dx,x,a \sin (e+f x)\right )}{a^5 f}\\ &=\frac{4 (A-B) (a+a \sin (e+f x))^{3+m}}{a^3 f (3+m)}-\frac{4 (A-2 B) (a+a \sin (e+f x))^{4+m}}{a^4 f (4+m)}+\frac{(A-5 B) (a+a \sin (e+f x))^{5+m}}{a^5 f (5+m)}+\frac{B (a+a \sin (e+f x))^{6+m}}{a^6 f (6+m)}\\ \end{align*}
Mathematica [A] time = 0.382035, size = 103, normalized size = 0.84 \[ \frac{(a (\sin (e+f x)+1))^{m+3} \left (\frac{a^3 (A-5 B) (\sin (e+f x)+1)^2}{m+5}-\frac{4 a^3 (A-2 B) (\sin (e+f x)+1)}{m+4}+\frac{4 a^3 (A-B)}{m+3}+\frac{B (a \sin (e+f x)+a)^3}{m+6}\right )}{a^6 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 5.923, size = 0, normalized size = 0. \begin{align*} \int \left ( \cos \left ( fx+e \right ) \right ) ^{5} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m} \left ( A+B\sin \left ( fx+e \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.71917, size = 563, normalized size = 4.58 \begin{align*} -\frac{{\left ({\left (B m^{3} + 12 \, B m^{2} + 47 \, B m + 60 \, B\right )} \cos \left (f x + e\right )^{6} -{\left ({\left (A + B\right )} m^{3} + 3 \,{\left (3 \, A + B\right )} m^{2} + 18 \, A m\right )} \cos \left (f x + e\right )^{4} - 8 \,{\left ({\left (A + B\right )} m^{2} + 6 \, A m\right )} \cos \left (f x + e\right )^{2} - 32 \,{\left (A + B\right )} m -{\left ({\left ({\left (A + B\right )} m^{3} +{\left (13 \, A + 7 \, B\right )} m^{2} + 6 \,{\left (9 \, A + 2 \, B\right )} m + 72 \, A\right )} \cos \left (f x + e\right )^{4} + 8 \,{\left ({\left (A + B\right )} m^{2} + 2 \,{\left (4 \, A + B\right )} m + 12 \, A\right )} \cos \left (f x + e\right )^{2} + 32 \,{\left (A + B\right )} m + 192 \, A\right )} \sin \left (f x + e\right ) - 192 \, A\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{f m^{4} + 18 \, f m^{3} + 119 \, f m^{2} + 342 \, f m + 360 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.2915, size = 1162, normalized size = 9.45 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]